<?php
class Desain_dekorasi extends CI_Controller{
	var $_admin_view = '';

	function  __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->library('session');
        $this->config->load('artyproperty');
        $this->_admin_view = $this->config->item('admin_view').'wrapper';
    }
    function index(){
    	//cek session
        $islogin = $this->session->userdata('isLogin');
        $user = ''; $id = '';
        if ($islogin) {
            $user = $this->session->userdata('username');
            $level = $this->session->userdata('level');
            $id = $this->session->userdata('user_id');
        }else {
            redirect(site_url(),'location');
        }

        $sql = "select * from user where dekorasi_id = ?";
        $query = $this->db->query($sql,$id);
        $dekorasi = $query->row();
        $data_output['dekorasi']['nama_dekorasi'] = $dekorasi->nama_dekorasi;
        $data_output['dekorasi']['estimasi_harga'] = $dekorasi->estimasi_harga;
        $data_output['dekorasi']['estimasi_luas'] = $dekorasi->estimasi_luas;
    }

}
?>